package com.yjd.comm.borrow.enums;

/**
 * <b>description</b>：投标渠道 <br>
 * <b>time</b>：2014-8-22 下午7:14:54 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum InvestChannelEnum {

	AUTO(0, "auto", "自动投标"), PIC(1, "pc", "网站投标"), ANDROID(2, "android",
			"安卓客户端投标"), IOS(3, "ios", "iOS客户端投标"), WEIXIN(4, "weixin", "微信端投标"), WAP(
			5, "wap", "WAP端投标"), WALLET(6, "wallet", "小钱包"), GOLD(7, "gold",
			"医信宝"), AUTOINVEST(8, "autoinvest", "自动投标"), RESERVATION(9, "预约投标");

	private Integer value;
	private String label;
	private String description;

	private InvestChannelEnum(Integer value, String label, String description) {
		this.value = value;
		this.label = label;
		this.description = description;
	}

	private InvestChannelEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getDescription() {
		return description;
	}

	public static InvestChannelEnum get(Integer value) {
		InvestChannelEnum[] enums = InvestChannelEnum.values();
		for (InvestChannelEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		InvestChannelEnum enum1 = InvestChannelEnum.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}

	public static void main(String[] args) {
		for (InvestChannelEnum investChannelEnum : InvestChannelEnum.values()) {
			System.out.print(investChannelEnum.getValue() + ":" + investChannelEnum.getDescription() + ",");
		}
	}
}